﻿@model Windvoice.Blog.Voice

@{
    ViewBag.Title = "Create Voice";
    Layout = "~/Areas/Manage/Views/Shared/_Layout.cshtml";
}

@section headSection{
    <script src="@Url.Content("~/Content/js/jquery.validate.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/jquery.validate.unobtrusive.js")" type="text/javascript"></script>
}

<div class="pagetitle">
    <h2>创建Voice</h2>
    <div class="pagefunctions">
        @Html.ActionLink("返回列表", "index")
    </div>    
</div>

@using (Html.BeginForm("create","voice", FormMethod.Post, new { @class = "dataform" })) 
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Voice</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Author)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Author, new { @class = "long" })
            @Html.ValidationMessageFor(model => model.Author)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Content)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Content, new { style = "width:400px;height:6em" })
            @Html.ValidationMessageFor(model => model.Content)
        </div>

        <p>
            <input class="submitbutton" type="submit" value="提交" />
        </p>
    </fieldset>
}